package microcredit.model;

import java.io.File;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

import microcredit.model.base.Model;

@XmlRootElement(name="report")
public class Report extends Model {
	
	private boolean display = true;
	private String icon;
	private String name;
	private File jasperFile;
	private String file;
	
	public void setDisplay(boolean display) {
		this.display = display;
	}
	
	@XmlAttribute(name="display")
	public boolean isDisplay() {
		return display;
	}
	
	@XmlElement
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	@XmlTransient
	public File getJasperFile() {
		return jasperFile;
	}
	public void setJasperFile(File jasperFile) {
		this.jasperFile = jasperFile;
	}

	public String getFile() {
		return file;
	}
	
	public void setFile(String file) {
		this.file = file;
	}
	public String getIcon() {
		return icon;
	}
	
	public void setIcon(String icon) {
		this.icon = icon;
	}
	
	
}
